package com.uphone.kingmall.utils;

import android.util.SparseArray;

import java.util.Collection;
import java.util.Map;

/******************************************
 * 类描述: 集合工具类
 *
 * @version: V1.0
 * @author: sumeng
 * @time: 2017-08-07 09:54
 ******************************************/

public final class ListUtils {

    public static boolean isEmpty(SparseArray data) {
        return data == null || data.size() == 0;
    }

    public static boolean isEmpty(Collection data) {
        return data == null || data.isEmpty();
    }

    public static boolean isEmpty(Map data) {
        return data == null || data.isEmpty();
    }
}
